package com.bit.springbook.adapter;

public class Test {
    public static void main(String[] args) {
        // 适配模式的应用：补救原来的代码
        Log4J log4J1 = new MyLog1Adapter(new MyLog1());
        log4J1.log("测试1...");
        Log4J log4J2 = new OtherLog1Adapter(new OtherLog1());
        log4J2.log("测试2...");

    }
}
